<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    @include('public.h5_head')
    <title>审核列表</title>
    <script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/rem.js"></script>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/commoncss/common.css"/>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/audit.css?v=1.0.1"/>
</head>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/iscroll.js"></script>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/app.js"></script>
<body onload="loaded()">
<div id="box_audit">
    <div class="wrap">
        <div class="main_audit">
            <ul class="audit_ul">
                @if(count($list) > 0 )
                    @foreach($list as $v)
                <li class="audit_li">
                    <div class="audit_list">
                        <div class="audit_top">
                            <span class="audit_sl">{{ $v->created_at }}</span>
                            <span class="audit_sr1">未审核</span>
                        </div>
                        <div class="audit_peo">
                            <span class="audit_name">{{ $v->username }}</span>
                            <span class="audit_tel">{{ $v->user_tel }}</span>
                        </div>
                        <div class="audit_address">
                            <textarea class="text" readonly UNSELECTABLE="on" onfocus="this.blur()">{{ $v->user_area }}{{ $v->area_detail }}</textarea>
                        </div>
                        @if(Auth::user()->to_examine == 1)
                        <div class="audit_look" onclick="window.location.href='/getRegUserDetails/{{ $v->id }}'">
                            @elseif(Auth::user()->to_examine == 2)
                                <div class="audit_look" onclick="window.location.href='/bus-details/{{ $v->id }}'">
                                @endif
                            <span class="audit_span">查看详情</span>
                            <span class="audit_jian"><img src="/img/youjiantou.png" alt="" /></span>
                        </div>
                    </div>
                </li>
                    @endforeach
                @else
                    <div class="main_empty">
                        <div class="audit_empty">
                            <div class="audit_img">
                                <img src="/img/00024.png" alt="" />
                            </div>
                        </div>
                        <p class="audit_wrods">目前没有待审核用户</p>
                    </div>
                @endif
            </ul>
        </div>
    </div>
</div>
</body>
<script>
    /*滚动*/
    var myScroll;
    function loaded () {
        setTimeout(function(){
            myScroll = new IScroll('.wrap', {
                mouseWheel: true,
                click: true
            });
        },100);
    }
    document.addEventListener('touchmove', function (e) {e.preventDefault();},false);
</script>
</html>
